# -*- coding: utf-8 -*-
'''菜单模块文件，包含菜单类型和菜单项的定义'''
from google.appengine.ext import db

class MenuType(db.Model):
    name = db.StringProperty(required=True)
    slug = db.StringProperty(required=True)
    description = db.StringProperty()
    
class MenuItem(db.Model):
    name = db.StringProperty(required=True)
    parent_menuitem = db.IntegerProperty(required=True)
    leaf = db.BooleanProperty(required=True)
    iconCls = db.StringProperty()
    menu_type = db.IntegerProperty(required=True)
    description = db.StringProperty()